package fanxing;

public class TextMyArrayList {
    public static void main(String[] args) {
//        MyArrayList<String> MyArrayList1 = new MyArrayList<>();
//        MyArrayList1.add("111");
//        MyArrayList1.add("aaa");
//        MyArrayList1.add("DDD");
//        System.out.println("MyArrayList.get(2) = "
//                + MyArrayList1.get(2));
//        System.out.println("MyArrayList = " + MyArrayList1);
        MyArrayList<Integer> MyArrayList2 = new MyArrayList<>();
        MyArrayList2.add(111);
        MyArrayList2.add(22);
        MyArrayList2.add(2999);
        System.out.println("MyArrayList2 = " + MyArrayList2);
        System.out.println("MyArrayList2.get(1) = "
                + MyArrayList2.get(1));
    }
}
